<template>
  <div class="loading_box" v-if="store.state.globalStore.loading">
    <a-spin size="large"/>
  </div>
</template>

<script>
import {defineComponent, ref, reactive} from 'vue';
import {useStore} from "vuex"

export default defineComponent({
  name: "loading",
  setup() {
    const store = useStore();
    return {
      store
    }
  }

})
</script>

<style scoped lang="scss">
.loading_box {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #232323;
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
}
</style>
